//
//  LocationTransformationOptionsModel.m
//  o_amap
//
//  Created by Q神 on 2021/4/20.
//

#import "LocationTransformationOptionsModel.h"

@implementation LocationTransformationOptionsModel

- (LatLngModel *)coordinateTransformation {
    LatLngModel *model;
    if (self.latitude > 0 && self.longitude > 0) {
        CLLocationCoordinate2D amapcoord = AMapCoordinateConvert(CLLocationCoordinate2DMake(self.latitude, self.longitude), self.coordinateType);
        model = [LatLngModel initWithLat:amapcoord.latitude withLng:amapcoord.longitude];
    }
    return model;
}

@end
